<template>
	<!--我得-->
	<div id="hello">
		<div class="header clearfix">
			<div class="title">我的</div>
			<div class="left">
				<img src="../../assets/u5020.png" alt="" />
			</div>
			<div class="user left">
				<div class="hello_username">王佳丽</div>
				<div class="userInfor">查看个人信息</div>
			</div>
		</div>
		<div class="line"></div>
		<div class="mine clearfix">
			<div class="left" @click="goMycontestant">
				<img src="../../assets/user.png" alt="" />
				<span>我的选手</span>
			</div>
			<div class="left" @click="goMycare">
				<img src="../../assets/user.png" alt="" />
				<span>关注的选手</span>
			</div>
			<div class="left" @click="goOrder">
				<img src="../../assets/user.png" alt="" />
				<span>我的订单</span>
			</div>
			<div class="left" @click="goMygame">
				<img src="../../assets/user.png" alt="" />
				<span>我的比赛</span>
			</div>

			<div class="left" @click="goLicence">
				<img src="../../assets/user.png" alt="" />
				<span>参赛证</span>
			</div>
		</div>
		<div class="item_title">我是棋校</div>
		<div class="chessschool clearfix">
			<div class="left" @click="goChessschool">
				<img src="../../assets/user.png" alt="" />
				<span>棋校资料</span>
			</div>

		</div>
		<div class="teacher">我是老师</div>
		<div class="teachers clearfix">
			<div class="left">
				<img src="../../assets/user.png" alt="" />
				<span>老师资料</span>
			</div>
			<div class="left">
				<img src="../../assets/user.png" alt="" />
				<span>我的课程</span>
			</div>
		</div>
		<div class="myset">我的设置</div>
		<div class="mysetting clearfix">
			<div class="left" @click="goRevise">
				<img src="../../assets/user.png" alt="" />
				<span>修改手机号</span>
			</div>
			<div class="left" @click="goResetPassword">
				<img src="../../assets/user.png" alt="" />
				<span>重置密码</span>
			</div>
		</div>
		<button>退出登录</button>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				selected: true
			}
		},

		methods: {
			goMygame: function() {
				this.$router.push({
					path: '/mygametotal'
				})
			},

			goMycontestant: function() {
				this.$router.push({
					path: '/mycontestant'
				})
			},
			goMycare: function() {
				this.$router.push({
					path: '/mycare'
				})
			},
			goChessschool: function() {
				this.$router.push({
					path: '/chessschool'
				})
			},
			goOrder: function() {
				this.$router.push({
					path: '/total'
				})
			},
			goResetPassword: function() {
				this.$router.push({
					path: '/resetpassword'
				})
			},
			goRevise: function() {
				this.$router.push({
					path: '/revisetelephone'
				})
			},
			goLicence: function() {
				this.$router.push({
					path: '/appiled'
				})
			}
		}
	}
</script>

<style scoped="scoped">
	* {
		margin: 0;
		padding: 0;
	}
	span {
		text-decoration: none;
	}
	
	.line {
		height: 1px;
		background-color: #ddd;
		margin-top: 10px;
	}
	
	.title {
		text-align: center;
		font-size: 0.4rem;
		background: #4682B4;
		color: #fff;
		line-height: 1rem;
	}
	
	.clearfix:after {
		clear: both;
		content: '';
		display: block;
	}
	
	.left {
		float: left
	}
	
	.right {
		float: right
	}
	
	.header img {
		padding: 10px 20px;
		height: 1rem;
	}
	
	.header .user {
		margin-top: 10px;
	}
	
	.hello_username {
		font-size: 0.4rem;
	}
	
	.user {
		margin-left: 20px;
	}
	
	#hello .userInfor {
		font-size: 0.3rem;
		color: #A9A9A9;
	}
	
	.mine,
	.chessschool,
	.mysetting,
	.teachers {
		background-color: #fff;
		padding: 10px 0;
	}
	
	.mine div,
	.chessschool>div,
	.teachers>div,
	.mysetting>div {
		width: 25%;
		text-align: center;
		font-size: 0.3rem;
	}
	
	.item_title,
	.teacher,
	.myset {
		background-color: #f2f2f2;
		padding: 10px 20px;
		font-size: 0.5rem;
	}
	
	.mine img,
	.chessschool img,
	.teachers img,
	.mysetting img {
		display: block;
	}
	#hello button {
		width: 90%;
		margin: 5%;
		background: #fe8f24;
		padding: 10px 0;
		border: 1px solid #FE8F24;
		border-radius: 10px;
		color: #fff;
	}
</style>